package com.zqx.strategy.specificstrategy;

import com.zqx.strategy.abstractstrategy.Discount;
import lombok.extern.slf4j.Slf4j;

/**
 * description: 具体策略类
 * @author zqx
 * @date 2018/09/06
 */
@Slf4j
public class VIPDiscount implements Discount {

    private final double DISCOUNT = 0.5;
    @Override
    public double calculate(double price) {
        log.info("【VIP票】");
        log.info("【积分】增加操作");
        return price * DISCOUNT;
    }
}
